<script lang="ts" setup>
import { ref, watch } from 'vue';

const totalCount = ref(10)
watch(totalCount,()=>{
  console.log('totalCount',totalCount.value)
})
</script>
<template>
<p>{{ totalCount }}</p>
<button @click="totalCount++">+</button>
</template>

